package com.bbex.entity;

import com.bbex.sql.SqlField;
import com.bbex.sql.SqlTable;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * 用户hid账户资产
 */
@Component
@SqlTable("hongmeng_user_coin_hid_volume")
public class HongmengCoinHidVolume extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @SqlField("user_id")
    private String userId;

    @SqlField("volume")
    private BigDecimal volume;

    @SqlField("lock_volume")
    private BigDecimal lockVolume;

    @SqlField("out_lock_volume")
    private BigDecimal outLockVolume = BigDecimal.ZERO;

    @SqlField("coin_id")
    private String coinId;

    @SqlField("coin_symbol")
    private String coinSymbol;

    @SqlField("flag")
    private Integer flag;

    @SqlField("flag_mark")
    private String flagMark;

    @SqlField("version")
    private Long version = 0L;

    @SqlField("create_by")
    protected String createBy;

    @SqlField("update_by")
    protected String updateBy;

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public BigDecimal getOutLockVolume() {
        return outLockVolume;
    }

    public void setOutLockVolume(BigDecimal outLockVolume) {
        this.outLockVolume = outLockVolume;
    }

    public String getCoinSymbol() {
        return coinSymbol;
    }

    public void setCoinSymbol(String coinSymbol) {
        this.coinSymbol = coinSymbol;
    }

    public String getFlagMark() {
        return flagMark;
    }

    public void setFlagMark(String flagMark) {
        this.flagMark = flagMark;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public BigDecimal getVolume() {
        return volume;
    }

    public void setVolume(BigDecimal volume) {
        this.volume = volume;
    }

    public BigDecimal getLockVolume() {
        return lockVolume;
    }

    public void setLockVolume(BigDecimal lockVolume) {
        this.lockVolume = lockVolume;
    }

    public String getCoinId() {
        return coinId;
    }

    public void setCoinId(String coinId) {
        this.coinId = coinId;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

}
